from Utils.router import router
from Utils.gy import shopmoney


@router.get('/gy/Salestrend', tags=['猫酷&销采数据'], summary='上月及本月销售趋势')
async def get_sales_trend():
    data = shopmoney.days_cur_month()
    shop_get_sales_trend = shopmoney.get_Salestrend()
    return {'day': data, 'thismoondata': shop_get_sales_trend[0], 'thatmoondata': shop_get_sales_trend[1]}
